$(document).ready(function () {
    var numberstep=$('.mt-element-step .step-line .mt-step-col').length;
    if(numberstep>6){
       $('.mt-step-number').addClass('custom-step-number');
       $('.mt-step-title').addClass('custom-step-titles');
       $('.mt-step-title').addClass('custom-step-title');
    }else{
       $('.mt-step-number').removeClass('custom-step-number');
       $('.mt-step-title').removeClass('custom-step-titles');
       $('.mt-step-title').removeClass('custom-step-title');
    }
})